package com.lson.service;

import com.lson.common.ResultMsg;
import com.lson.test.dto.ParamDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("erueka-client")
public interface ClientService {
    @RequestMapping("/test/success")
    ResultMsg success(@RequestParam("str") String str);

    @PostMapping("/test/post")
    ResultMsg post(@RequestBody ParamDto paramDto);
}
